<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
list($basicname)=$arguments;
// 是主应用时的菜单
$menus1=array();
// 辅助应用时的菜单
$menus2=array(
		array('title'=>'入口','child'=>array(
			array('url'=>'jy_ylfee/index/','title'=>'概况'),
			array('url'=>'jy_ylfee/basic.module_home/cover/ac=index','title'=>'首页入口'),
		)),
		array('title'=>'会员管理','child'=>array(
			array('url'=>'jy_ylfee/agent/','title'=>'代理管理'),
			array('url'=>'jy_ylfee/member/','title'=>'会员管理'),
			array('url'=>'jy_ylfee/apply/','title'=>'申请审核'),
			array('url'=>'jy_ylfee/order/','title'=>'业绩订单'),
		)),
		array('title'=>'绩效管理','child'=>array(
			array('url'=>'jy_ylfee/commission/','title'=>'绩效列表'),
			array('url'=>'jy_ylfee/balance/','title'=>'绩效提现'),
			array('url'=>'jy_ylfee/memberdata/','title'=>'财务统计'),
		)),
		array('title'=>'工资/股份','child'=>array(
			array('url'=>'jy_ylfee/commission2/','title'=>'工资单'),
			array('url'=>'jy_ylfee/feelog5/','title'=>'工资发放'),
			array('url'=>'jy_ylfee/feelog6/','title'=>'股份发放'),
			array('url'=>'jy_ylfee/balance2/','title'=>'工资提现'),
			array('url'=>'jy_ylfee/memberdata2/','title'=>'财务统计'),
		)),
		array('title'=>'眼药水绩效','child'=>array(
			array('url'=>'jy_ylfee/yaosetting/','title'=>'眼药水设置'),
			array('url'=>'jy_ylfee/order3/','title'=>'眼药水订单'),
			array('url'=>'jy_ylfee/commission3/','title'=>'眼药水业绩'),
			array('url'=>'jy_ylfee/balance3/','title'=>'眼药水提现'),
			array('url'=>'jy_ylfee/memberdata3/','title'=>'财务统计'),
		)),
		array('title'=>'参数设置','child'=>array(
			array('url'=>'jy_ylfee/goods/','title'=>'商品独立分红比例设置'),
			array('url'=>'jy_ylfee/setting/','title'=>'基本设置'),
			array('url'=>'jy_ylfee/page_setting/','title'=>'样式设置'),
			array('url'=>'jy_ylfee/apply_setting/','title'=>'申请页面设置'),
			array('url'=>'jy_ylfee/xieyi0/','title'=>'股东协议'),
			array('url'=>'jy_ylfee/xieyi1/','title'=>'市公司协议'),
			array('url'=>'jy_ylfee/xieyi2/','title'=>'省公司协议'),
		)),
);

// 小应用可以不设置主菜单
if(empty($basicname)){
	$menus =$menus1?$menus1:$menus2;
	return $menus ;
}else{
	$basicmens = $this->plugin($basicname)->menus();
	if(!empty($basicmens)){
		foreach($basicmens as &$v){
			if($v['isplugin'] == 1){
				$v=$menus2[0];
			}
		}
	}
	return $basicmens;
}

